﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class EarlyWarning_DrugsNameSelect : System.Web.UI.Page
{
    string _SortID = string.Empty;
    protected void Page_Load(object sender, EventArgs e)
    {
        _SortID = Request.QueryString["_SortId"];
        if (!this.IsPostBack)
        {
            DataBind();
        }
    }

    private void DataBind()
    {
        int t=0;
        HZ.Supervise.IBLL.IBLL_ProcureCatalog pro = HZ.Supervise.BLLFactory.IBLL_ProcureCatalog();
        string _productName = HZ.Fun.CheckString(this.txtGoods.Text);
        System.Data.DataTable dt = pro.GetProcureCatalog(_productName,_SortID, AspNetPager1.CurrentPageIndex, AspNetPager1.PageSize, out t);
        AspNetPager1.RecordCount = t;
        this.gridInfo.DataSource = dt;
        this.gridInfo.DataBind();
    }

    protected void btnEnter_Click(object sender, EventArgs e)
    {
        AspNetPager1.CurrentPageIndex = 1;
        DataBind();
    }
}
